﻿using System;

namespace UnityEngine.PostProcessing
{
	// Token: 0x020000FF RID: 255
	[Serializable]
	public class FogModel : PostProcessingModel
	{
		// Token: 0x170000A1 RID: 161
		// (get) Token: 0x0600062E RID: 1582 RVA: 0x00025560 File Offset: 0x00023760
		// (set) Token: 0x0600062F RID: 1583 RVA: 0x00025568 File Offset: 0x00023768
		public FogModel.Settings settings
		{
			get
			{
				return this.m_Settings;
			}
			set
			{
				this.m_Settings = value;
			}
		}

		// Token: 0x06000630 RID: 1584 RVA: 0x00025574 File Offset: 0x00023774
		public override void Reset()
		{
			this.m_Settings = FogModel.Settings.defaultSettings;
		}

		// Token: 0x040005E1 RID: 1505
		[SerializeField]
		private FogModel.Settings m_Settings = FogModel.Settings.defaultSettings;

		// Token: 0x02000100 RID: 256
		[Serializable]
		public struct Settings
		{
			// Token: 0x170000A2 RID: 162
			// (get) Token: 0x06000631 RID: 1585 RVA: 0x00025584 File Offset: 0x00023784
			public static FogModel.Settings defaultSettings
			{
				get
				{
					return new FogModel.Settings
					{
						color = new Color32(102, 108, 113, 154),
						mode = FogMode.Exponential,
						density = 0.001f,
						start = 0f,
						end = 600f,
						excludeSkybox = true
					};
				}
			}

			// Token: 0x040005E2 RID: 1506
			[Tooltip("Controls the color of that fog drawn in the scene.")]
			public Color color;

			// Token: 0x040005E3 RID: 1507
			[Tooltip("Controls the mathematical function determining the way fog accumulates with distance from the camera. Options are Linear, Exponential and Exponential Squared.")]
			public FogMode mode;

			// Token: 0x040005E4 RID: 1508
			[Tooltip("Controls the density of the fog effect in the Scene when using Exponential or Exponential Squared modes.")]
			public float density;

			// Token: 0x040005E5 RID: 1509
			[Tooltip("Controls the distance from the camera where the fog will start in the scene.")]
			public float start;

			// Token: 0x040005E6 RID: 1510
			[Tooltip("Controls the distance from the camera where the fog will completely obscure objects in the Scene.")]
			public float end;

			// Token: 0x040005E7 RID: 1511
			[Tooltip("Should the fog affect the skybox?")]
			public bool excludeSkybox;
		}
	}
}
